﻿using System;
using Styx.Helpers;
using Styx.Plugins;
using Styx.Common;

namespace Ringo
{
    public partial class Ringo
    {
        public class RingoGB2Creator : HBPlugin
        {
            #region definitions
            private static string SubversionRevision { get { return ("$Rev: 99 $"); } }
            public override string Name { get { return "Ringo GB2 Creator"; } }
            public override string Author { get { return "pbettell"; } }
            public override Version Version { get { return new Version(1,0,0,0); } }
            public override string ButtonText { get { return "Can't Click This"; } }
            public override bool WantButton { get { return false; } }
            public int PulseCounter = 0;
            #endregion
            public override void Initialize()
            {
                NLog(Name.ToString() + " - " + SubversionRevision + " initialized.");
            }
            public override void Pulse()
            {
                if (PulseCounter < 25)
                {
                    PulseCounter = PulseCounter + 1;
                }
                if (PulseCounter >= 25)
                {
                    Logging.Write("<Hotspot X=\"" + MeLP.Location.X.ToString() + "\" Y=\"" + MeLP.Location.Y.ToString() + "\" Z=\"" + MeLP.Location.Z.ToString() + "\" />");
                    PulseCounter = 0;
                }
            }
        }
    }
}